package com.ytjj.qmyx.supplychain.mapper;

import com.ytjj.qmyx.supplychain.common.model.BankerInfoVO;
import com.ytjj.qmyx.supplychain.common.model.bill.response.BankerBillResponse;
import com.ytjj.qmyx.supplychain.common.model.request.BankerRequest;
import com.ytjj.qmyx.supplychain.common.model.response.BankerDataResponse;
import com.ytjj.qmyx.supplychain.common.model.response.BankerResponse;
import com.ytjj.qmyx.supplychain.mapper.entity.YxBanker;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface BankerMapper extends Mapper<YxBanker> {

    List<BankerDataResponse> getBankerDataResponseList(BankerRequest bankerRequest);

    List<BankerResponse> getSpecialBrand(Integer bankerId);

    Integer addProductNum(Integer bankerId);

    Integer syncZeroNum(@Param("bankerId") Integer bankerId, @Param("zeroTryNum") Integer zeroTryNum);

    List<Integer> selectBankerIdByName(@Param("name") String bankerName);

    List<YxBanker> selectByBankerName(String bankerName);

    List<YxBanker> getBankerByName(@Param("bankerName") String bankerName);

    List<YxBanker> selectByIds(@Param("list") List<Integer> bankerIds);

    List<Integer> selectByRequest(BankerRequest request);

    int updateErpId(@Param("bankerId") Integer bankerId, @Param("erpId") Integer erpId);

    List<Integer> selectByErpId(@Param("erpId") Integer erpId);

    List<BankerBillResponse> getBankerById(@Param("bankerId") Integer bankerId,@Param("bankerName") String bankerName);
}
